package xyz.hubery.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import xyz.hubery.dto.TradeAreaAndMarketDTO;
import xyz.hubery.dto.TradeAreaDTO;
import xyz.hubery.dto.TradeMarketDTO;

import java.util.List;
import java.util.Map;

@FeignClient(name = "exchange-service",contextId = "tradeAreaServiceFeign", configuration = ClientCredentialsFeignInterceptor.class,path = "/tradeAreas")
public interface TradeAreaServiceFeign {

    /**
     * 获取所有的交易区域及其管辖的交易市场
     * @return
     */
    @GetMapping("/getAraeAndMarkets")
    List<TradeAreaAndMarketDTO> listAreaAndMarkets();
}
